package com.lc.user.express.httpserver;

import com.zcx.helper.http.AsyCallBack;
import com.zcx.helper.http.note.HttpInlet;

import org.json.JSONObject;

/**
 * Created by Administrator on 2016/4/19.
 */
@HttpInlet(Net.GET_ORDER_DONE_INFO)
public class GetNeedDetails extends ZJDBAsyGet<GetNeedDetails.Info> {
    public String userid;

    public GetNeedDetails(AsyCallBack listener) {
        super(listener);
    }

    @Override
    protected Info parser(JSONObject object) {
        if (object.optInt("message") == 1) {
            Info info = new Info();
            info.web_myselftmove = object.optString("web_myselftmove");
            info.web_drivermove = object.optString("web_drivermove");
            info.web_backinfo = object.optString("web_backinfo");
            return info;
        }
        return null;
    }

    public static class Info {
        public String web_myselftmove,web_backinfo,web_drivermove;
    }
}
